home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
telecomm
/
sticpsrc.lzh
/
SOURCE.ARC
/
ATARI_IL.S
< prev
next >
Wrap
Text File
|
1990-03-23
|
456b
|
22 lines
/ interrupt-latency measurement routine
/
.globl lathandler_,latency_
/
.shri
/
lathandler_:
movem.l ${d0,a0},-(sp) / Save working registers
/
moveq.l $0,d0
move.b 0xfffa1f,d0 / Read timer value
asl.w $2,d0 / Index in LONG array
movea.l $latency_,a0
addq.l $1,0(a0,d0) / Inc the proper element
/
movea.l $0xfffa0f,a0 / Location of ISR
bclr $5,(a0) / Clear the bit
/
movem.l (sp)+,${d0,a0} / Restore registers
rte